package com.xinke.juc.util;

/**
 * @Author：xinke
 * @Date：2025/10/1
 * @Desc:
 */
public class Sleeper {

    public static void sleep(double sleep) {
        try {
            int time = (int) (sleep * 1000);
            Thread.sleep(time);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
